#ifndef QDISPLAYPLP_H
#define QDISPLAYPLP_H

#include <QObject>
#include <QVBoxLayout>
#include <QHash>
#include "qexppart.h"
#include "qcodeplpgenerator.h"


class QDisplayCodePLP : public QObject
{
   Q_OBJECT

public:
   QDisplayCodePLP(QVBoxLayout* layout,QObject*parent = 0);
   ~QDisplayCodePLP();
   
   void setPartToDisplay(QEXPPart* part);
  
signals:
  void addToFile(const QStringList& items);
  void modifyPart(const QStringList& items);
  
public slots:
  void add();
  void modify();
private:
  
  void clearLayout();
  QStringList properties() const;
  QVBoxLayout* m_layout;
};

#endif